﻿namespace EIM_Accounting.BLL
{
    using Accounting.DAL;

    public class CP010105
    {
        private readonly Contract contract = new Contract();

        internal void AddContract(Accounting.Model.Contract contractModel)
        {
            contract.Add(contractModel);
        }

        internal Accounting.Model.Contract GetModel(string contractID)
        {
            return contract.GetModel(int.Parse(contractID));
        }

        internal void DiscardModel(Accounting.Model.Contract contractModel)
        {
            contract.DiscardModel(contractModel);
        }

        internal void UpdateRealDate(Accounting.Model.Contract contractModel)
        {
            contract.UpdateRealDate(contractModel);
        }
    }
}